from django.conf.urls import patterns, include, url
import re

urlpatterns = patterns('polls.views',
    # Examples:
    # url(r'^$', 'NApp.views.home', name='home'),
    # url(r'^NApp/', include('NApp.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
		url(r'^$', 'login'),
        url(r'^login/$', 'login'),
        url(r'^relogin/$', 'login'),
        url(r'^index/$', 'index'),
		url(r'^(?P<poll_id>\d+)/$', 'detail'),
		url(r'^(?P<poll_id>\d+)/vote/$', 'vote'),
		url(r'^(?P<poll_id>\d+)/results/$', 'results'),
        url(r'^logincheck/$', 'logincheck'),
        url(r'^JsonExample/$','JsonExample'),
        url(r'^JsonExample/getjsonData/$','getJsonData'),
        url(r'^logout/$','logout'),
)
